<?php

namespace common\model;

use think\model\RelationModel;

class RelationNoteEntityRelationModel extends RelationModel
{

    //自动验证
    protected $_validate = [
        ['entity_id', '', '', self::MUST_VALIDATE, 'require', self::MODEL_INSERT],
        ['note_entity_relation_id', '', '', self::MUST_VALIDATE, 'require', self::MODEL_INSERT],
    ];

    //自动完成
    protected $_auto = [
        ['created', 'time', self::MODEL_INSERT, 'function'],
    ];

}
